package com.cq.hd.member.po;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * app用户表
 * </p>
 *
 * @author mYunYu
 * @since 2023-11-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_app_user")
@ApiModel(value="TbAppUserPo对象", description="app用户表")
public class TbAppUserPo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户名")
    @TableField("user_name")
    private String userName;

    @ApiModelProperty(value = "昵称")
    @TableField("nick_name")
    private String nickName;

    @ApiModelProperty(value = "头像")
    @TableField("avatar")
    private String avatar;

    @ApiModelProperty(value = "手机号")
    @TableField("mobile")
    private String mobile;

    @ApiModelProperty(value = "登录密码")
    @TableField("login_pass")
    private String loginPass;

    @ApiModelProperty(value = "真实姓名")
    @TableField("real_name")
    private String realName;

    @ApiModelProperty(value = "openid")
    @TableField("openid")
    private String openid;

    @ApiModelProperty(value = "unionid")
    @TableField("unionid")
    private String unionid;

    @ApiModelProperty(value = "微信号")
    @TableField("wechat")
    private String wechat;

    @ApiModelProperty(value = "邮箱")
    @TableField("email")
    private String email;

    @ApiModelProperty(value = "状态(1-正常，2-已封禁)")
    @TableField("state")
    private Integer state;

    @ApiModelProperty(value = "是否是经纪人(1-不是，2-是)")
    @TableField("agent_state")
    private Integer agentState;

    @ApiModelProperty(value = "经纪人入驻时间")
    @TableField("enter_time")
    private LocalDateTime enterTime;

    @ApiModelProperty(value = "佣金账户余额")
    @TableField("commission_amt")
    private BigDecimal commissionAmt;


    @ApiModelProperty(value = "汇付id")
    @TableField("hf_id")
    private String hfId;

    @ApiModelProperty(value = "个人证件号码")
    @TableField("cert_no")
    private String certNo;

    @ApiModelProperty(value = "个人证件有效期类型:0：非长期有效 ,1：长期有效")
    @TableField("cert_validity_type")
    private Integer certValidityType;

    @ApiModelProperty(value = "个人证件有效期开始日期")
    @TableField("cert_begin_date")
    private String certBeginDate;

    @ApiModelProperty(value = "个人证件有效期截止日期")
    @TableField("cert_end_date")
    private String certEndDate;


    @ApiModelProperty(value = "注册时间")
    @TableField("register_time")
    private LocalDateTime registerTime;

    @ApiModelProperty(value = "注册ip")
    @TableField("register_ip")
    private String registerIp;

    @ApiModelProperty(value = "最后登录时间")
    @TableField("last_login_time")
    private LocalDateTime lastLoginTime;

    @ApiModelProperty(value = "最后登录ip")
    @TableField("last_login_ip")
    private String lastLoginIp;

    @ApiModelProperty(value = "创建者")
    @TableField("create_by")
    private Integer createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新者")
    @TableField("update_by")
    private Integer updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "删除状态:0-正常，1-已删除")
    @TableField("del_state")
    private Integer delState;

    @ApiModelProperty(value = "邀请码")
    @TableField("invite_code")
    private String inviteCode;

    @ApiModelProperty(value = "上级经纪人")
    @TableField("agent_id")
    private Long agentId;

    @ApiModelProperty(value = "经纪人等级：0不是经纪人 1一级经纪人 2二级经纪人")
    @TableField("agent_level")
    private Integer agentLevel;
}
